package com.example.test.策略模式.iimpl;

import com.example.test.策略模式.AddService;
import com.example.test.策略模式.抽象.AbstractHaddel;
import com.example.test.自己的责任连.AbstractHandel;
import org.springframework.stereotype.Service;

@Service
public class IMPL1 extends AbstractHaddel {
    @Override
    public int addone(int num) {
        return ++num;
    }

    @Override
    public boolean getaddservice(int num) {
        return num==5;
    }

}
